package book;

/**
 * Created with IntelliJ IDEA.
 * Description：
 * User：user
 * DATE:2021-10-29
 * Time:20:08
 */
public class BookList {
    private Book[] books = new Book[5];
    private int usedSize;

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
    public Book getBook(int k ){
        return books[k];
    }

    public  BookList(){
        this.books[0] = new Book("三国演义", "罗贯中", 100, "小说");
        this.books[1] = new Book("水浒传", "施耐庵", 100, "小说");
        this.books[2] = new Book("西游记", "吴承恩", 100, "小说");
        this.usedSize = 3;
    }





}
